<?php

namespace app\beautiful\model\appointment;

use app\beautiful\model\project\ProjectModel;

use app\common\model\CommonModel;

use app\yoga\model\appointment\CoachModel;



class TechnicianSchedulingModel extends CommonModel{

    protected  $name = 'beautiful_technician_scheduling';

    protected  $pk   = 'scheduling_id';



    public function project()

    {

        return $this->hasOne(ProjectModel::class,'project_id','project_id');

    }



    public function coach()

    {

        return $this->hasOne(CoachModel::class,'coach_id','coach_id');

    }



    public function appointment()

    {

        return $this->hasMany(AppointmentModel::class,'scheduling_id','scheduling_id');

    }

}

